package com.jms;

import java.util.Calendar;

/**
 * 五一规划策略:
 * 行李:少许内衣+娱乐设备(手机,自拍杆等等)
 * 天气情况:4.29晴天,4.30晴转多云,5.1阵雨
 * <p>
 * Day_(1)上海南->杭州站->龙翔桥->西湖景区->萧山区(晚餐-亲戚家里住宿)
 * Day_(2)萧山区(早餐)->宾馆(西湖附近)->灵隐寺->午餐->三潭印月->晚餐->住宿(西湖附近)
 * Day_(3)宾馆->杭州南->上海南站
 * <p>
 * 一路开销预计:1000-2000
 * 人员:两人
 * <p>
 * Created by simon on 4/27/17.
 */
public class WuYiVacation {

    public static void main(String[] args) {
        back:
        for (int time = 429; true; ) {//时刻准备着
            Calendar calendar = Calendar.getInstance();
            int month = calendar.get(Calendar.MONTH);
            int day = calendar.get(Calendar.DAY_OF_MONTH);
            System.out.println("今天是"+month+"月"+day+"日");
            if (month == 4 && day == 29) {
                time++;
                arriveToHangZhouTrainStation();
                arriveToLongXiangQiaoSubwayStation();
                arriveToXiHuScenery();
            }
            if (month == 4 && day == 30) {
                time++;
                LingYinSiHuScenery();

            }
            if (month == 5 && day == 1) {
                time++;
            }
            if (time == 431) {
                backShangHaiTrainStation();
                break back;
            }
        }
        System.out.println("五一假期over....");
    }

    private static void arriveToHangZhouTrainStation() {//杭州-火车站
        System.out.println("初到杭州-火车站");
    }

    private static void arriveToLongXiangQiaoSubwayStation() {//龙翔桥-地铁站
        System.out.println("初到杭州龙翔桥-地铁站");
    }

    private static void arriveToXiHuScenery() {//西湖-景区
        String scenery = "xihu";
        range.range(scenery);
    }

    private static void LingYinSiHuScenery() {//灵隐寺-景区
        String scenery = "scenery";
        range.range(scenery);
    }

    private static void backShangHaiTrainStation() {//上海-火车站
        System.out.println("返回上海火车站");
    }

    private static class range {
        private static void range(String scenery) {
            switch (scenery) {
                case "xihu":
                    System.out.println("游船");
                    System.out.println("雷峰塔");
                    System.out.println("白堤");
                    System.out.println("孤山");
                    System.out.println("曲院风荷");
                    System.out.println("苏堤");
                    break;
                case "lingyinsi":
                    System.out.println("灵隐寺");
                    System.out.println("三潭印月");
                    break;
                default:
                    break;

            }
        }
    }
}
